package com.wy.panda.controller.po;

import java.util.Date;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

import com.wy.panda.controller.po.BasePO.CreateGroup;
import com.wy.panda.controller.po.BasePO.UpdateGroup;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 数据字典控制层领域模型
 * @author wangyuan
 * @since 2021-03-27 13:27:03
 */
@ApiModel("数据字典")
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class SysDictPO extends BasePO {

    private static final long serialVersionUID = 68329184918514704L;
    
    @ApiModelProperty("主键")
    @NotNull(groups = {UpdateGroup.class}, message = "ID不能为空")
    private Long id;
    
    @ApiModelProperty("字典名称")
    @NotNull(groups = {CreateGroup.class, UpdateGroup.class}, message = "字典名称不能为空")
    @Length(groups = {CreateGroup.class, UpdateGroup.class}, max = 50, message = "字典名称长度需要在{min}和{max}之间")
    private String dictName;
    
    @ApiModelProperty("字典类型")
    private String dictType;
    
    @ApiModelProperty("字典Code")
    private String dictCode;
    
    @ApiModelProperty("字典Value")
    private String dictValue;
    
    @ApiModelProperty("备注")
    private String remark;
    
    @ApiModelProperty("序号")
    private Integer sort;
    
}